﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JCFramework.Common;

namespace JCSoft.Collect.Bussness
{
    public class MiddleTier
    {
        public static Lazy<MiddleTier> s_lazyInstance = new Lazy<MiddleTier>(() => new MiddleTier());
        public static MiddleTier Instance
        {
            get
            {
                return s_lazyInstance.Value;
            }
        }

        protected MiddleTier()
        {
            this.m_lazyUserManager = new Lazy<IUserManager>(() => new UserManager(this));
        }

        private Lazy<IUserManager> m_lazyUserManager;
        public virtual IUserManager UserManager
        {
            get
            {
                return this.m_lazyUserManager.Value;
            }
        }
    }
}
